package my.bean;

/**
 * database table : tea 
 * bean : tea
 * attribute : id,name,from,price,stock,type,introduction
 * specifically : tea have six type: grean , black , white , yellow , dark , Oolong 
 * @author slim
 *
 */

public class Tea {
	private int id;
	private String name;
	private String from;
	private double price;
	private double stock;
	private int type;
	private String introduction;

	
	public Tea(int id, String name, String from, double price, double stock, int type, String introduction) {
		super();
		this.id = id;
		this.name = name;
		this.from = from;
		this.price = price;
		this.stock = stock;
		this.type = type;
		this.introduction = introduction;
	}
	
	public Tea(String name, String from, double price, double stock, int type, String introduction) {
		super();
		this.name = name;
		this.from = from;
		this.price = price;
		this.stock = stock;
		this.type = type;
		this.introduction = introduction;
	}



	public Tea() {
		super();
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getFrom() {
		return from;
	}

	public void setFrom(String from) {
		this.from = from;
	}

	public double getPrice() {
		return price;
	}

	public void setPrice(double price) {
		this.price = price;
	}

	public double getStock() {
		return stock;
	}

	public void setStock(double stock) {
		this.stock = stock;
	}

	public String getIntroduction() {
		return introduction;
	}

	public void setIntroduction(String introduction) {
		this.introduction = introduction;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

}
